﻿<s:SurfaceUserControl x:Class="WikipediaSurfaceBrowser.Search"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="http://schemas.microsoft.com/surface/2008" Background="Transparent">
    <s:SurfaceUserControl.Resources>
        <ControlTemplate x:Key="languageRadioButton" TargetType="{x:Type s:SurfaceRadioButton}">
            <Border Name="border" Padding="5" BorderBrush="Black" BorderThickness="0">
                <ContentPresenter />
            </Border>
            
            <ControlTemplate.Triggers>
                <Trigger Property="IsChecked" Value="True">
                    <Setter TargetName="border" Property="BorderThickness" Value="1" />
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>
    </s:SurfaceUserControl.Resources>
    <Border CornerRadius="5" >
    	<Border.Background>
    		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    			<GradientStop Color="#FF990000" Offset="0"/>
    			<GradientStop Color="#AA990000" Offset="1"/>
    		</LinearGradientBrush>
    	</Border.Background>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="400" />
                <ColumnDefinition Width="100" />
                <ColumnDefinition Width="100" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="100" />
                <RowDefinition Height="80" />
            </Grid.RowDefinitions>
            <s:SurfaceTextBox Name="txtSearch" Grid.Row="0" Grid.Column="0" 
                          Margin="15" 
                          FontSize="24" 
                          FontWeight="Bold" 
                          VerticalContentAlignment="Center"
                          KeyDown="txtSearch_KeyDown" />
            <s:SurfaceButton Name="btnSearchWikipedia" Tag="Wikipedia" Grid.Row="0" Grid.Column="1" Margin="15" Click="btnSearch_Click">
                <Image Source="pack://application:,,,/Resources/Search Wikipedia.png" />
            </s:SurfaceButton>
            <s:SurfaceButton Name="btnSearchCommons" Tag="Commons" Grid.Row="0" Grid.Column="2" Margin="15" Click="btnSearch_Click">
                <Image Source="pack://application:,,,/Resources/Search Commons.png" />
            </s:SurfaceButton>
            <GroupBox Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" >
                <GroupBox.Header>
                    <Image Source="pack://application:,,,/Resources/Vista-Ym.png" Height="25" VerticalAlignment="Center" />
                </GroupBox.Header>
                <StackPanel 
                        Name="spLanguages" 
                        Margin="5" 
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center"
                        Orientation="Horizontal">


                </StackPanel>
            </GroupBox>
        </Grid>
    </Border>
</s:SurfaceUserControl>
